package cn.dmrliu.edu.publish.service.impl;

import cn.dmrliu.edu.publish.bean.TrafficVisitorStatsPerHour;
import cn.dmrliu.edu.publish.mapper.TrafficVisitorStatsMapper;
import cn.dmrliu.edu.publish.service.TrafficVisitorStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficVisitorStatsServiceImpl implements TrafficVisitorStatsService {

    @Autowired
    TrafficVisitorStatsMapper trafficVisitorStatsMapper;

    @Override
    public List<TrafficVisitorStatsPerHour> getVisitorStatsPerHour(Integer date) {
        return trafficVisitorStatsMapper.selectVisitorStatsPerHr(date);
    }
}
